/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package domain;

/**
 *
 * @author David
 */
public class UnitMapper {
    
    public static UnitDTO getUnitDTO(Unit unit){
        UnitDTO dto = new UnitDTO();
        dto.setName(unit.getName());              
        dto.setUnitType(UnitTypeMapper.getUnitTypeDTO(unit.getType()));
   
        return dto;
    }
    
}
